cmake_minimum_required(VERSION 3.16)
project(pgn_requests_example)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(isobus CONFIG)  # Normally, you set REQUIRED, however if building from top level, it already exists
find_package(Threads REQUIRED)

add_executable(PGNRequestExampleTarget main.cpp)
target_link_libraries(PGNRequestExampleTarget PRIVATE
	-Wl,--whole-archive
	isobus::Isobus
	-Wl,--no-whole-archive
	isobus::HardwareIntegration
	Threads::Threads
	isobus::SystemTiming
)
